package com.raos.lottery.redis.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.ValueOperations;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * 抽奖奖品项控制器
 *
 * @author raos
 * @emil 991207823@qq.com
 * @date 2021/7/21 23:01
 */
@RestController
@RequestMapping("/lottery-item")
public class LotteryItemController {

    @Autowired
    RedisTemplate redisTemplate;

    @GetMapping
    public void test() {
        ValueOperations vo = redisTemplate.opsForValue();
        vo.get("d");
    }

}
